package com.naiterui.ehp.bp.constants;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 医生系统配置
 *
 * @author mudou
 * @since 2.6.5
 */
public enum DrSystemConfEnum {

    DR_DEPARTMENT_PAEDIATRICS("departmentPaediatrics", "儿科科室", "0"),
    DR_VIDEO_CONSULT_REFUSAL_REASON("videoConsultRefusalReason", "视频咨询拒诊原因", "0");
    ;


    private static final String REDIS_PREFIX = "naiterui-sys|dr_";

    /**
     * 配置code：<code>code</code>
     */
    private String code;
    /**
     * 配置描述：<code>desc</code>
     */
    private String desc;
    /**
     * 配置默认值：<code>defValue</code>
     */
    private String defValue;

    DrSystemConfEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    DrSystemConfEnum(String code, String desc, String defValue) {
        this.code = code;
        this.desc = desc;
        this.defValue = defValue;
    }

    public String getRedisKey() {

        return REDIS_PREFIX + code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getDefValue() {
        return defValue;
    }

    public void setDefValue(String defValue) {
        this.defValue = defValue;
    }


    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
